*LSG Paper Table 1 and 2 Models*

*Table 1, Models with different state capacity measures*
*Government effectiveness* 
*Direct effect of distance*
xtgee pirincidents_new c.l.goveffect c.ln_averagedistance ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew, fam(nbinomial) corr(ar1)
est store sc1
*Distance government effectiveness interaction*
xtgee pirincidents_new c.l.goveffect##c.ln_averagedistance ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew, fam(nbinomial) corr(ar1)
est store sc2
*Coastline length as alternative measure of reach*
xtgee pirincidents_new c.l.goveffect##c.coast_ln ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew, fam(nbinomial) corr(ar1)
est store sc3
*Land area as alternative measure of reach*
xtgee pirincidents_new c.l.goveffect##c.ln_landarea ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew, fam(nbinomial) corr(ar1)
est store sc4
*Unlogged capital_coast Distance*
xtgee pirincidents_new c.l.goveffect##c.averagedistance ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew, fam(nbinomial) corr(ar1)
est store sc5
*Maximum distances*
xtgee pirincidents_new c.l.goveffect##c.coastkm_maxln ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew, fam(nbinomial) corr(ar1)
est store sc6
*Spatial lag of effectiveness*
xtgee pirincidents_new c.l.goveffect##c.ln_averagedistance ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew l.spLag_effect, fam(nbinomial) corr(ar1)

outreg2 [sc1 sc2 sc3 sc4 sc5 sc6 sc7]  using myfilelsg1, word replace dec(3) 10pct 

*Table 2, Robustness tests*
*SFI Distance interaction*
xtgee pirincidents_new c.l.sfi##c.ln_averagedistance ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew, fam(nbinomial) corr(ar1)
est store sc8
*RPC as alternative measure of capacity*
xtgee pirincidents_new c.l.rpe_gdp##c.ln_averagedistance ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew, fam(nbinomial) corr(ar1)
est store sc9
*GDP distance interaction*
xtgee pirincidents_new c.l.lngdpcap##c.ln_averagedistance ports_ln l.spLag_pirincidents    laglnregtradenew, fam(nbinomial) corr(ar1)
est store sc10
*Hijackings 
xtgee hijack c.l.goveffect##c.ln_averagedistance ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew, fam(nbinomial) corr(ar1)
est store sc11
*Controlling for Somalia * 
xtgee pirincidents_new c.l.goveffect##c.ln_averagedistance  somalia l.lngdpcap  laglnregtradenew ports_ln  l.spLag_pirincidents, fam(nbinomial) corr(ar1)
est store sc12
*Alternative estimation method using GLS model*
xtgls ln_pirincidents_new c.l.goveffect##c.ln_averagedistance ports_ln l.spLag_pirincidents  l.lngdpcap  laglnregtradenew,  panels(hetero) corr(ar1)
est store sc13
*SFI spatial lag*
xtgee pirincidents_new c.l.sfi##c.ln_averagedistance   l.lngdpcap  laglnregtradenew ports_ln  l.spLag_pirincidents l.spLag_sfi, fam(nbinomial) corr(ar1)
est store sc14


outreg2 [sc7 sc8 sc9 sc10 sc11 sc12 sc13 sc14]  using myfilelsg2, word replace dec(3) 10pct seeout

